package com.ydt.controller;

import com.ydt.entity.YdtProduct;
import com.ydt.service.YdtProductService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 一点通产品表(YdtProduct)表控制层
 *
 * @author makejava
 * @since 2020-12-24 14:32:14
 */
@RestController
@RequestMapping("ydtProduct")
public class YdtProductController {
    /**
     * 服务对象
     */
    @Resource
    private YdtProductService ydtProductService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public YdtProduct selectOne(Integer id) {
        return this.ydtProductService.queryById(id);
    }

}